##################################################################################
#
#    TINYXML - 3rd party library. Enchanced with autotools build.
#
#  Usage:  
#    If you don't have a configure script, see autotools usage, run autogen.sh
#    If you have already created configure script:
#
#    1. Build & Install
#
#    ./configure [options]   
#
#    make -f Makefile
#
#    make -f Makefile install
#
#    2. Create distribution archive
#
#    make -f Makefile dist 
#
# 
#  Configure Options:
#
#    1. Common options provided from each configure like: --prefix=<install_dir>
#
# 
################################################################################

AC_INIT([tinyxml], [1.0.16], [ognyan.gerassimov@opencode.com])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE

AC_SVN_INFO_VERSION

AC_PROG_CXX
AM_PROG_LIBTOOL

if test `echo "$target_os" | grep -o -P "^linux"` == "linux"; then
  AC_MSG_NOTICE([Linux system is the target OS.])
  DEFS="$DEFS -DLINUX"
fi

DEFS="$DEFS -D_REENTRANT -DPTHREADS -DMULTITHREAD -D_FILE_OFFSET_BITS=64"
CPPFLAGS="$CPPFLAGS $DEFS"

AC_CONFIG_HEADERS([config.h])
AC_OUTPUT(Makefile)

AC_CONFIG_MACRO_DIR([m4])

